<?php
/**
 *  CGConstants Class
 *
 *  @author $Author: jinsonxu@gmail.com $:
 *  $Date: 2014-11-16 10:39:12 +0000 (Sun, 16 Nov 2014) $:
 *  $Id: CGConstants.php 16 2014-11-16 10:39:12Z jinsonxu@gmail.com $:
 *  @version $Rev: 16 $:
 *  @package crawlgenie.application
 */

define('_CGEXEC', 1);
define('DS', DIRECTORY_SEPARATOR);
define('CG_BASE_PATH', realpath(dirname(__FILE__). DS . '..' . DS));
define('CG_SOURCES_DIR', CG_BASE_PATH . DS . CGConfig::$sourcesDirName);
define('CG_LIB_PATH', CG_BASE_PATH . DS . 'lib');
define('CG_MODULES_DIR', CG_SOURCES_DIR . DS . 'org'. DS . 'crawlgenie' . DS . 'modules');
define('CG_NAME', 'crawlgenie');


define('CG_LOGGER_INCLUDE_PATH', CG_LIB_PATH . DS . CGConfig::$loggerLibDir);

define('CG_VIEW_HTML', 'HTML');
define('CG_VIEW_XML', 'XML');
define('CG_VIEW_JSON', 'JSON');


//db table constants
define('_CG_USERS_TABLE', 'users');
define('_CG_REQUEST_LOG_TABLE', 'request_log');
define('_CG_REPOS_METADATA_TABLE', 'repos_metadata');
define('_CG_REPOS_JOBS_INTERMEDIATE_TABLE', 'repos_jobs_intermediate');


define('CG_TIMESTAMP_FORMAT', 'Y-m-d H:i:sO');
?>
